package com.sacc.controller;

import com.sacc.clients.BoxClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 滚~韬
 * @date 2022/4/13 22:33
 */
@RestController
@RequestMapping("/user/box")
public class MyboxController {
    @Autowired
    private BoxClient boxClient;

    //获取待认养和已收养蜂箱的数量
    @GetMapping("/getallnumber")
    private Map<String, Integer> getAll(@RequestParam String openId){
        return  boxClient.getallcheckcount(openId);
    }
}
